package com.tensquare.qa.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author Macross
 * @Type Reply.java
 * @Desc 回答信息实体类
 * @date 2019/12/17 17:04
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "tb_reply")
@ApiModel(description = "回答信息实体类")
public class Reply {

    @Id
    @ApiModelProperty(value = "编号")
    private String id;

    @ApiModelProperty(value = "问题ID")
    private String problemId;

    @ApiModelProperty(value = "回答内容")
    private String context;

    @ApiModelProperty(value = "创建日期")
    @Column(name = "createtime")
    private Date createTime;

    @ApiModelProperty(value = "修改日期")
    @Column(name = "updatetime")
    private Date updateTime;

    @ApiModelProperty(value = "回答人ID")
    @Column(name = "userid")
    private String userId;

    @ApiModelProperty(value = "回答人昵称")
    @Column(name = "nickname")
    private String nickName;

}
